package com.cnhis.cloudhealth.clinical.hosnurse.hoscare.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.dao.BaseDao;
import com.cnhis.cloudhealth.commons.utils.Page;

@Repository
public class HosCareDao extends BaseDao{
	public List getInTimeAndOutTime(Map map)throws Exception{
		return queryForList("HosCare.getInTimeAndOutTime", map);
	}
	public Page queryPatientCareList(Map map,int currPage,int pageSize)throws Exception{
		return queryForPage("HosCare.queryPatientCareList", map, currPage, pageSize);
	}
    public void saveVCF1(Map map)throws Exception{
  	   insert("HosCare.saveVCF1", map); 
    }
    public void updateVCF1(Map map)throws Exception{
   	   update("HosCare.updateVCF1", map); 
     }
    public Page queryTemperatureRecord(Map map,int currPage,int pageSize)throws Exception{
    	return queryForPage("HosCare.queryTemperatureRecord", map, currPage, pageSize);
    }
    public Page queryOPSRecord(Map map,int currPage,int pageSize)throws Exception{
    	return queryForPage("HosCare.queryOPSRecord", map, currPage, pageSize);
    }
    public List patientCare(Map map)throws Exception{
    	return queryForList("HosCare.patientCare", map);
    }
    public int existsVcf(Map map)throws Exception{
    	return (int) queryForExtObject("HosCare.existsVcf", map);
    }
    public void deleteVCF1(Map map)throws Exception{
    	delete("HosCare.deleteVCF1", map);
    }
	 public void deleteVCG1(Map map)throws Exception{
		 delete("HosCare.deleteVCG1", map);
	    }
	 public void deleteVCK1(Map map)throws Exception{
		 delete("HosCare.deleteVCK1", map);
	 }
	 public void updateVCF2(Map map)throws Exception{
		 update("HosCare.updateVCF2", map);
	 }
	 public List patientList(Map map)throws Exception{
		 return queryForList("HosCare.patientList", map);
	 }
	 public List  getVAQ1(Map map)throws  Exception{
		 return queryForList("HosCare.getVAQ1", map);
	 }
	 public String getCAD041(Map map)throws Exception{
		 return (String) queryForExtObject("HosCare.getCAD041", map);
	 }
      public String getCAD042(Map map)throws Exception{
    	  return (String) queryForExtObject("HosCare.getCAD042", map);
	 }
      public List getVCF1(Map map)throws Exception{
    	  return queryForList("HosCare.getVCF1", map);
      }
      public List getVCK1(Map map)throws Exception{
    	  return queryForList("HosCare.getVCK1", map);
      }
      public void insertVAQ1(Map map)throws Exception{
    	  insert("HosCare.insertVAQ1", map);
      }
      public void update_VCF1(Map map)throws Exception{
    	  update("HosCare.update_VCF1", map);
      }
      public void inset_VCK1(Map map)throws Exception{
    	  insert("HosCare.inset_VCK1", map);
      }
      public int checkSign()throws Exception{
    	  return (int) queryForExtObject("HosCare.checkSign", null);
      }
      public void update_CBP1(Map map)throws Exception{
    	  update("HosCare.update_CBP1", map);
      }
      public void updateCBP1(Map map)throws Exception{
    	  update("HosCare.updateCBP1", map);
      }
      public void CBP1_update(Map map)throws Exception{
    	  update("HosCare.CBP1_update", map);
      }
    public List queryCareItems(Map map) throws Exception
    {
        return queryForList("HosCare.queryCareItems", map);
    }
    public List getHour(HashMap map) throws Exception
    {
        return queryForList("HosCare.getHour", map);
    }
}
